<!DOCTYPE html>
<html>
<head>
<meta charset="ISO-8859-1">
<title>Project Registration</title>
<link href="{{ STATIC_URL }}css/index.css" rel="stylesheet" />
</head>
<body>
	<div id="title">Project Registration</div>
	{% if post %}
		{% if form.errors %}
			<p class='error'>***There are errors in your submission***</p>
		{% else %}	
			<p class='success'>***You have successfully registered!***</p>	
		{% endif %}		
	{% endif %}

	<form action="" method="post">
		{% csrf_token %}
		<table>
			<tr>
				<td><label>UMID:</label></td>
				<td>{{ form.umid }}</td>
				{% if form.umid.errors %}
					{% for error in form.umid.errors %}
						<td class='error'>{{ error }}</td>
					{% endfor %}
				{% endif %}
			</tr>
			<tr>
				<td><label>First Name:</label></td>
				<td>{{ form.firstName }}</td>
				{% if form.firstName.errors %}
					{% for error in form.firstName.errors %}
						<td class='error'>{{ error }}</td>
					{% endfor %}
				{% endif %}
			</tr>
			<tr>
				<td><label>Last Name:</label></td>
				<td>{{ form.lastName }}</td>
				{% if form.lastName.errors %}
					{% for error in form.lastName.errors %}
						<td class='error'>{{ error }}</td>
					{% endfor %}
				{% endif %}
			</tr>
			<tr>
				<td><label>Project Name:</label></td>
				<td>{{ form.title }}</td>
				{% if form.title.errors %}
					{% for error in form.title.errors %}
						<td class='error'>{{ error }}</td>
					{% endfor %}
				{% endif %}
			</tr>
			<tr>
				<td><label>Email:</label></td>
				<td>{{ form.email }}</td>
				{% if form.email.errors %}
					{% for error in form.email.errors %}
						<td class='error'>{{ error }}</td>
					{% endfor %}
				{% endif %}
			</td>
			<tr>
				<td><label>Phone:</label></td>
				<td>{{ form.phone }}</td>
				{% if form.phone.errors %}
					{% for error in form.phone.errors %}
						<td class='error'>{{ error }}</td>
					{% endfor %}
				{% endif %}
			</tr>
			<tr>
				<td><label>Time:</label></td>
				<td>{{ form.timeslot }}</td>
				{% if form.timeslot.errors %}
					{% for error in form.timeslot.errors %}
						<td class='error'>{{ error }}</td>
					{% endfor %}
				{% endif %}
			</tr>
		</table>
		<input type="submit" value="Submit">
	</form>
</body>
</html>